package com.example.mes_boot.service.imp;

import com.example.mes_boot.mapper.addmapper;
import com.example.mes_boot.mapper.delemapper;
import com.example.mes_boot.pojo.factory;
import com.example.mes_boot.pojo.process;
import com.example.mes_boot.pojo.project;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class addservieimpl {
    @Autowired
    private addmapper addmapper;
    public  void add(String name, String address, String rt_power, Integer rt_voltage, String status, String remark){
        addmapper.add(name,address,rt_power,rt_voltage,status,remark);
    }
    public void addproject(project add) {
        addmapper.addproject(add);
    }

    public void updatafactory(Integer id, Integer page) {
        addmapper.updatafactory(id,page);
    }

    public Integer addwl(factory wid) {
       return addmapper.addwl(wid);
    }

    public void addprocess(process id) {
        addmapper.addprocess(id);
    }
}
